package com.ningkang.auth.remote;

import com.ningkang.common.domain.ums.UserVo;
import com.ningkang.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserServiceRemote
 * @Description 描述
 * @Author guoxin
 * @Date 2024/10/17 20:34
 */
@FeignClient("ningkang-ums")
public interface UserServiceRemote {
    /**
     * 根据名称查询 用户是否存在
     */
    @GetMapping("/user/selectName/{username}")
    public Result<UserVo> selectName(@PathVariable("username") String username);
}
